import request from '@/utils/request'

// 查询
export function listLink(query) {
  return request({
    url: '/nav/list',
    method: 'get',
    params: query
  })
}

// 查询
export function searchLink(query) {
  return request({
    url: '/nav/search',
    method: 'get',
    params: query
  });
}

// 查询品牌详细
export function getLink(linkId) {
  return request({
    url: '/nav/' + linkId,
    method: 'get'
  })
}

export function addLink(query) {
  return request({
    url: '/nav/add',
    method: 'get',
    params: query
  })
}

// 修改网址
export function editLink(data) {
  return request({
    url: '/nav/update',
    method: 'put',
    data: data
  })
}

//delLink
export function delLink(ids) {
    return request({
      url: '/nav/del/' + ids,
      method: 'delete'
    })
  }
